﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="userlogoverview.aspx.cs"
    Inherits="Com.Rivyer.Web.admin.userlogoverview" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>用户日志</title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../css/rivcontent.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <%if (DesignMode)
      { %>
    <script type="text/javascript" src="../js/ASPxScriptIntelliSense.js"></script>
    <%} %>
    <script type="text/javascript">
        
    </script>
    <div>
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td height="30">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td height="24" bgcolor="#353c44">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td>
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td width="6%" height="19" valign="bottom">
                                                        <div align="center">
                                                            <img src="../images/tb.gif" width="14" height="14" /></div>
                                                    </td>
                                                    <td width="94%" valign="bottom">
                                                        <span class="STYLE1">用户日志</span>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td align="center" style="font-size: 12px; width=100%">
                    <div id="rivcontent">
                        <div class="title">
                            用户登录日志
                        </div>
                        <dx:ASPxGridView ID="userlogingrid" runat="server" Width="750px" DataSourceID="SqlDataSource1"
                            AutoGenerateColumns="False" KeyFieldName="id" Font-Size="12px">
                            <Columns>
                                <dx:GridViewDataTextColumn FieldName="id" ReadOnly="True" VisibleIndex="1" Visible="False">
                                    <EditFormSettings Visible="False" />
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="username" VisibleIndex="2" Caption="用户名">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="loginip" VisibleIndex="3" Caption="登录IP">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataDateColumn FieldName="logintime" VisibleIndex="4" 
                                    Caption="登陆时间">
                                </dx:GridViewDataDateColumn>
                            </Columns>
                            <Settings ShowFilterRow="True" ShowFilterRowMenu="True" ShowGroupPanel="True" />
                            <Styles>
                                <Header HorizontalAlign="Center">
                                </Header>
                                <Cell HorizontalAlign="Center">
                                </Cell>
                            </Styles>
                        </dx:ASPxGridView>
                        <div class="title">
                            用户操作日志
                        </div>
                        <dx:ASPxGridView ID="useroperateloggrid" runat="server" Font-Size="12px" Width="750px"
                            AutoGenerateColumns="False" DataSourceID="SqlDataSource2" KeyFieldName="id">
                            <Columns>
                                <dx:GridViewDataTextColumn FieldName="id" ReadOnly="True" Visible="False" VisibleIndex="1">
                                    <EditFormSettings Visible="False" />
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn Caption="用户名" FieldName="username" VisibleIndex="2">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn Caption="操作" FieldName="operation" VisibleIndex="3">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn Caption="描述" FieldName="description" VisibleIndex="4">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataDateColumn Caption="产生日期" FieldName="createdate" VisibleIndex="5">
                                </dx:GridViewDataDateColumn>
                            </Columns>
                            <Settings ShowFilterRow="True" ShowGroupPanel="True" />
                            <Styles>
                                <Header HorizontalAlign="Center">
                                </Header>
                                <Cell HorizontalAlign="Center">
                                </Cell>
                            </Styles>
                        </dx:ASPxGridView>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ITConnectionString %>"
        ProviderName="System.Data.SqlClient" SelectCommand="SELECT * FROM [tb_userloginlog] ORDER BY [logintime] DESC">
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:ITConnectionString %>"
        ProviderName="System.Data.SqlClient" SelectCommand="SELECT * FROM [tb_useroperatelog] ORDER BY [createdate] DESC">
    </asp:SqlDataSource>
    </form>
</body>
</html>
